﻿using ASPNetPatterns.Controllers;
using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASPNetPatterns
{
    public partial class SiteMaster : MasterPage
    {
        ASPNetPatterns.Controllers.IdentityAsp iasp;
        public IdentityAsp IdentityManager
        {
            get
            {
                if (iasp == null)
                    iasp = new IdentityAsp();
                return iasp;
            }
        }
       
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Unnamed_LoggingOut(object sender, LoginCancelEventArgs e)
        {
            IdentityManager.CerrarSesion();
        }
    }

}